import * as types from './mutations_types'

export default {
  [types.UPDATE_TOKEN_LOCAL]: (state, token) => {
    state.info = token
    wx.setStorageSync('randomKey', token.randomKey)
    wx.setStorageSync('token', token.token)
  }
}
